package org.cnc.explain.db.transaction.service;

import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhiyong.tan
 * @since 2022-07-26
 */
public interface TransactionService {

	/**
	 * 					转账
	 * @param from 		支出
	 * @param to 		转入
	 * @param amount 	额度
	 * @return 			受影响行数
	 * @throws Exception
	 */
	Integer transferMoney(Integer from, Integer to, BigDecimal amount) throws Exception;

}
